import request from '@/utils/request'

// 查询目标反馈分页
export function pageFeedback(query) {
  return request({
    url: '/risk/target/feedback/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询目标反馈列表
export function listFeedback(query) {
  return request({
    url: '/risk/feedback/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询目标反馈详细
export function getFeedback(id) {
  return request({
    url: '/risk/target/info/feedback/' + id,
    method: 'get'
  })
}

// 新增目标反馈
export function addFeedback(data) {
  return request({
    url: '/risk/feedback',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改目标反馈
export function updateFeedback(data) {
  return request({
    url: '/risk/feedback',
    method: 'put',
    data: data
  })
}

// 删除目标反馈
export function delFeedback(data) {
  return request({
    url: '/risk/feedback/remove/batch',
    method: 'delete',
    data
  })
}

// 导出目标反馈
export function exportFeedback(query) {
  return request({
    url: '/risk/feedback/export',
    method: 'get',
    params: query
  })
}

// 下载模板目标反馈
export function downImportTemplate() {
  return request({
    url: '/risk/feedback/importTemplate',
    method: 'get'
  })
}
